<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>云丢丢|智能工作室管理平台</title>
    <%= csrf_meta_tags %>
    <link rel="stylesheet" type="text/css" href="/assets/css/reset.css">
    <link rel="stylesheet" type="text/css" href="/assets/css/date_input.css">
    <link rel="stylesheet" type="text/css" href="/assets/css/common.css">
    <link rel="stylesheet" type="text/css" href="/assets/css/pagination.css">
    <script src="/assets/js/jquery-1.12.3.js"></script>
    <script src="/assets/js/jquery.date_input.pack.js"></script>
    
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">

     <!-- 引入七牛云前段js -->
    <%= javascript_include_tag '/assets/plupload/plupload.full.min.js' %>
    <%= javascript_include_tag '/assets/qiniu/qiniu.min.js' %>

    <!-- 引入指定模块的样式 -->
    <% if File.exists?("#{Rails.root}/app/assets/stylesheets/#{controller_name}.scss") ||  File.exists?("#{Rails.root}/app/assets/stylesheets/#{controller_name}.css") %>
      <%= stylesheet_link_tag controller_name, :media => "all" %>
    <% end%>  

    <!-- 引入指定模块的js -->
    <% if File.exists?("#{Rails.root}/app/assets/javascripts/#{controller_name}.coffee") || File.exists?("#{Rails.root}/app/assets/javascripts/#{controller_name}.js") %>
      <%= javascript_include_tag controller_name%>
    <% end%>  

  </head>
  <body>

    <input type="hidden" id="current_action_name" value="<%= action_name %>">
    <input type="hidden" id="current_controller_name" value="<%= controller_name %>">
    <input type="hidden" id="qiniu_domain" value="<%= QiniuConfService.call.domain%>">
    <header>
      <a class="navbar-header" href="/admin/companies">
        <img src="/assets/images/ydd-logo.png" alt="">
      </a>
      <div class="peo-message">
        <div class="peo-cir">
          <!-- <img src="" alt=""> -->
        </div>
        <em><%= current_user.mobile %></em>
        <span class="down-list"></span>
        <ul>
          <li>
            <a href="">账户信息</a>
          </li>
          <li>
            <a href="<%= switch_studio_admin_studios_path %>">切换分店</a>
          </li>
          <li>
            <a href="">使用帮助</a>
          </li>
          <li>
            <a href="<%= logout_admin_sessions_path %>">退出</a>
          </li>
        </ul>
      </div>
    </header>
    <div class="boxed">
      <div class="menu-wrap">
        <%= render 'layouts/menu_wrap' %>
      </div>
      <!-- 内容区域 -->
      <div class="content-container">
        <%= yield %>
      </div>   
    </div>
  </body>
</html>
